projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea253b
)
ci: Enable sudo in the image
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 2 Aug 2020 02:11:07 +0000
(22:11 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 2 Aug 2020 02:12:08 +0000
(22:12 -0400)
This is needed so we can install what we built.
.gitlab-ci/fedora.Dockerfile
patch
|
blob
|
history
diff --git
a/.gitlab-ci/fedora.Dockerfile
b/.gitlab-ci/fedora.Dockerfile
index 0ffd354d991894cf1133ed25e858a45aecf6552f..7889720523b13c091e971266078486a40d9a257c 100644
(file)
--- a/
.gitlab-ci/fedora.Dockerfile
+++ b/
.gitlab-ci/fedora.Dockerfile
@@
-1,8
+1,11
@@
FROM registry.gitlab.gnome.org/gnome/gtk/fedora-base:v21
+# Enable sudo for wheel users
+RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' /etc/sudoers
+
ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
-RUN useradd -u $HOST_USER_ID -ms /bin/bash user
+RUN useradd -u $HOST_USER_ID -
G wheel -
ms /bin/bash user
USER user
WORKDIR /home/user